package com.zone.infrastructure.persistent.dao;

import com.zone.infrastructure.persistent.po.UserRaffleOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: zongzi
 * @description: 用户抽奖订单表
 * @date: 2025/2/17
 */
@Mapper
public interface IUserRaffleOrderDao {

    List<UserRaffleOrder> queryUserRaffleOrderList(@Param("userId") String userId);

    UserRaffleOrder queryUserRaffleOrder(@Param("userId") String userId, @Param("activityId") Long activityId, @Param("orderState") String orderState);

    void insert(UserRaffleOrder userRaffleOrder);

    int updateState2Used(@Param("userId") String userId, @Param("activityId") Long activityId);
}
